package krypto.blindsignature.service;

import java.math.BigInteger;

import krypto.blindsignature.dto.Key;
import krypto.blindsignature.signer.RSASigner;

public class SigningServiceImpl implements SigningService {

	@Override
	public Key getPublicKey() {
		RSASigner signer = RSASigner.getInstance();
		return new Key(signer.getPublicKey(), signer.getModulus());
	}

	@Override
	public BigInteger sign(BigInteger message) {
		RSASigner signer = RSASigner.getInstance();
		return signer.sign(message);
	}

}
